package top.yohann.study.common.common;

/**
 * <p>
 * 返回状态枚举
 * </p>
 *
 * @author Yohann
 * @since 2020/9/21
 */
public enum ResultEnum {
    //(状态码，提示信息)
    SUCCESS(200, "成功"),
    ERROR(201, "失败"),
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}